<template>
	<view style="position: relative;overflow: hidden;">
		<image class="banner" :src= "configs + '/static/beer/index9.png'"></image>
		<view class="iconBox">
			<view class="icon" @click="toApplyTable">
				<image class="iconImage" src="@/static/images/work/table.png"></image>
				<view class="iconTxt">
					申请桌牌
				</view>
			</view>
			<view class="icon" @click="toMeal">
				<image class="iconImage" src="@/static/images/work/meal.png"></image>
				<view class="iconTxt">
					套餐购买
				</view>
			</view>
			<!-- <view class="icon">
				<image class="iconImage" src="@/static/images/work/scan.png"></image>
				<view class="iconTxt">
					扫描核销
				</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	import config from '@/config'
	export default {
		name:"workCompent",
		data() {
			return {
				configs:''
			};
		},
		created() {
			this.configs = config.baseUrl + ':19000'
		},
		methods:{
			//跳转申请桌牌
			toApplyTable(){
				this.$tab.navigateTo('/pagesA/applyTable/applyTable')
			},
			toMeal(){
				this.$tab.navigateTo('/pagesA/meal/meal')
			},
		},
	}
</script>

<style>
.banner{
		width: 750rpx;
		position: absolute;
		top: 0;
		z-index: -1;
	}
	.iconBox{
		width: 690rpx;
		min-height: 216rpx;
		margin: 300rpx auto 0 auto;
		display: flex;
		justify-content: flex-start;
		background-color: #ffffff;
		border-radius: 20rpx;
	}
	.icon{
		width: 150rpx;
		height: 156rpx;
		display: flex;
	    flex-direction: column;
		justify-content: center;
		align-items: center;
		margin: 30rpx 0rpx 0 60rpx;
	}
	.iconImage{
		width: 96rpx;
		height: 96rpx;
	}
	.iconTxt{
		width: 150rpx;
		height: 40rpx;
		line-height: 40rpx;
		text-align: center;
		font-size: 28rpx;
		color: #666666;
	}
</style>